//
//  ZCScanErrorCell.m
//  zctx
//
//  Created by apple on 16/4/12.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCScanErrorCell.h"

@implementation ZCScanErrorCell


+(instancetype)tableViewCellScanError:(UITableView*)tableView withIndex:(NSIndexPath *)indexPath{
    static NSString *cellID = @"scanerror";
    ZCScanErrorCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell ==nil) {
        cell = [[ZCScanErrorCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"scanerror"];
    }
    if (indexPath.row==0) {
        cell.infoLable.text = @"食品名称:";
        
    }else if (indexPath.row==1){
        cell.infoLable.text = @"品牌:";
    }else{
        cell.infoLable.text = @"规格:";
    }
    cell.textfiled.tag = 10+indexPath.row;
    return cell;
}

- (void)awakeFromNib {
    // Initialization code
    
    self.infoLable.textColor = [UIColor colorWithHexString:@"#404040"];
    self.textfiled.layer.borderWidth = 1;
    self.textfiled.layer.borderColor = [UIColor colorWithHexString:@"#E0E0E0"].CGColor;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
